package gui;

import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JFrame;

public class MainFrame extends JFrame implements ActionListener {

	private static final long serialVersionUID = 7852031034558083404L;
	
	private static MainFrame mainFrame = new MainFrame();

	public MainFrame getInstance() {
		return mainFrame;
	}

	private MainFrame() {
		super();
		ShapeBar shapeBar = new ShapeBar(this);
		CanvasPanel canvasPanel = new CanvasPanel(this);

		this.setSize(new Dimension(800, 1000));
		this.setLayout(new BorderLayout());
		this.add(shapeBar, BorderLayout.NORTH);
		this.add(canvasPanel, BorderLayout.CENTER);

		this.setVisible(true);
	}

	public void actionPerformed(ActionEvent arg0) {
		// TODO Auto-generated method stub

	}
}
